package se.webbzon.boltzmann.editor.view;

import java.awt.Dimension;
import java.awt.Rectangle;

import javax.swing.JDesktopPane;
import javax.swing.Scrollable;

public class JScrollableDesktopPane extends JDesktopPane implements Scrollable {
	
	// Auto generated serial version UID
	private static final long serialVersionUID = 6809471042407556293L;

	@Override public Dimension getPreferredScrollableViewportSize() {
		return getPreferredSize();
	}

	@Override public int getScrollableUnitIncrement(Rectangle r, int axis, int dir) {
		return 50;
	}

	@Override public int getScrollableBlockIncrement(Rectangle r, int axis, int dir) {
		return 200;
	}

	@Override public boolean getScrollableTracksViewportWidth() {
		return false;
	}

	@Override public boolean getScrollableTracksViewportHeight() {
		return false;
	}
	
}
